package com.ytjj.qmyx.mall.model.response;

import com.ytjj.qmyx.mall.model.Product;
import com.ytjj.qmyx.mall.model.UsersFake;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

@Data
public class UserFakeResponse {

    /**
     * 昵称
     *
     * @mbg.generated
     */
    private String nickname;

    /**
     * 头像
     *
     * @mbg.generated
     */
    private String headImg;

    /**
     * 账号总积累余额
     *
     * @mbg.generated
     */
    private BigDecimal totalMoney;

    /**
     * 账号余额
     *
     * @mbg.generated
     */
    private BigDecimal money;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 商品主图
     */
    private String productImg;

    /**
     * 是否领取补贴
     */
    private Integer isReceiveSubsidy;


    public UserFakeResponse(){
    }

    public UserFakeResponse(UsersFake usersFake){
        BeanUtils.copyProperties(usersFake,this);
    }
}
